.class Lcom/burstly/lib/util/calendar/CalendarEventsHandlerHigherApi14;
.super Lcom/burstly/lib/util/calendar/AbstractCalendarEventsHandler;
.source "CalendarEventsHandlerHigherApi14.java"


# annotations
.annotation build Landroid/annotation/TargetApi;
    value = 0xe
.end annotation


# direct methods
.method constructor <init>(Landroid/content/Context;Lcom/burstly/lib/util/calendar/CalendarEventsHandler$IEventsHandlerCallback;)V
    .locals 0
    .parameter "context"
    .parameter "callback"

    .prologue
    .line 43
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/util/calendar/AbstractCalendarEventsHandler;-><init>(Landroid/content/Context;Lcom/burstly/lib/util/calendar/CalendarEventsHandler$IEventsHandlerCallback;)V

    .line 44
    return-void
.end method


# virtual methods
.method protected populateIntent(Landroid/content/Intent;Lcom/burstly/lib/util/calendar/CalendarEvent;)V
    .locals 2
    .parameter "calendarIntent"
    .parameter "event"

    .prologue
    .line 48
    sget-object v0, Landroid/provider/CalendarContract$Events;->CONTENT_URI:Landroid/net/Uri;

    invoke-virtual {p1, v0}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 49
    const-string v0, "beginTime"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->start:Ljava/lang/Long;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 50
    const-string v0, "endTime"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->end:Ljava/lang/Long;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 51
    const-string v0, "dtstart"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->start:Ljava/lang/Long;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 52
    const-string v0, "title"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->summary:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 53
    const-string v0, "description"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->description:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 54
    const-string v0, "eventLocation"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->location:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 55
    const-string v0, "hasAlarm"

    const/4 v1, 0x1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 56
    const-string v0, "eventStatus"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->status:Ljava/lang/String;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 57
    const-string v0, "eventTimezone"

    invoke-static {}, Ljava/util/TimeZone;->getDefault()Ljava/util/TimeZone;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/TimeZone;->getID()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 58
    const-string v0, "dtend"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->end:Ljava/lang/Long;

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 59
    iget-object v0, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->recurrence:Lcom/burstly/lib/util/calendar/EventRepeatRule;

    if-eqz v0, :cond_0

    .line 60
    const-string v0, "rrule"

    iget-object v1, p2, Lcom/burstly/lib/util/calendar/CalendarEvent;->recurrence:Lcom/burstly/lib/util/calendar/EventRepeatRule;

    invoke-static {v1}, Lcom/burstly/lib/util/calendar/CalendarEventsHandlerHigherApi14;->parseEventRepeatRule(Lcom/burstly/lib/util/calendar/EventRepeatRule;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 62
    :cond_0
    return-void
.end method
